using System;
using Gtk;
using Npgsql;
using System.Data;
using PTransaction;

public partial class MainWindow : Gtk.Window
{
	private NpgsqlConnection connection;
	
	public MainWindow () : base(Gtk.WindowType.Toplevel)
	{
		Build ();
		newAction.Activated += delegate 
		{

			TransactionView transactionView = new TransactionView();
			// creamos ventana
		};
	}

	protected void OnDeleteEvent (object sender, DeleteEventArgs a)
	{
		
		Application.Quit ();
		a.RetVal = true;
	}
}
